home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / prcgntn1.lha / Precognition / source / GraphicObjectClass.h < prev    next >
C/C++ Source or Header  |  1992-12-23  |  2KB  |  87 lines

  1. /* ==========================================================================
  2. **
  3. **                   GraphicObjectClass.h
  4. **
  5. ** ⌐1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef GRAPHICOBJECTCLASS_H
  11. #define GRAPHICOBJECTCLASS_H
  12.  
  13. #include "PObjectClass.h"
  14. #include "GraphicObject.h"
  15.  
  16.  
  17. struct GraphicObjectClass
  18. {
  19.     OBJECTMETHODS
  20.  
  21.    Point (*Location)( GraphicObject *self );
  22.  
  23.    Point (*SetLocation)
  24.             ( GraphicObject *self,
  25.               PIXELS       LeftEdge,
  26.               PIXELS       TopEdge );
  27.    Point (*Size)( GraphicObject *self );
  28.  
  29.    Point (*AskSize)
  30.             ( GraphicObject *self,
  31.               PIXELS       Width,
  32.               PIXELS       Height );
  33.  
  34.    Point (*SetSize)
  35.             ( GraphicObject *self,
  36.               PIXELS       Width,
  37.               PIXELS       Height );
  38.  
  39.    UWORD  (*SizeFlags)
  40.             ( GraphicObject *self );
  41.  
  42.    void (*Render)
  43.             ( GraphicObject *self,
  44.               RastPort     *RPort );
  45.  
  46.    BOOL (*SetTitle)
  47.             ( GraphicObject *self,
  48.               char          *title );
  49.  
  50.    char *(*Title)( GraphicObject *self );
  51.  
  52.    AlignInfo (*TextAlignment)
  53.             ( GraphicObject *self );
  54.  
  55.    AlignInfo (*SetTextAlignment)
  56.             ( GraphicObject *self,
  57.               UBYTE        Flags,
  58.               BYTE          Xpad,
  59.               BYTE          Ypad );
  60.  
  61.    struct BuilderMethods *BuilderMethods;
  62.  
  63. };
  64.  
  65.  
  66. struct GraphicObjectClass *GraphicObjectClass( void );
  67.  
  68. void GraphicObjectClass_Init( struct GraphicObjectClass *class );
  69.  
  70. UWORD GraphicObject_SizeFlagsNone( GraphicObject *self );
  71. UWORD GraphicObject_SizeFlagsX( GraphicObject *self );
  72. UWORD GraphicObject_SizeFlagsY( GraphicObject *self );
  73. UWORD GraphicObject_SizeFlagsAll( GraphicObject *self );
  74.  
  75.  
  76.  
  77.  
  78. AlignInfo TextAlignment( GraphicObject *self );
  79.  
  80. AlignInfo SetTextAlignment( GraphicObject *self,
  81.                                      UBYTE             Flags,
  82.                                      BYTE              Xpad,
  83.                                      BYTE              Ypad );
  84.  
  85.  
  86. #endif
  87.